package com.elite.groovy.dev;

import com.elite.groovy.kh.GMSMUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * @projectName: ngsapitask-tp2.6
 * @package: com.elite.groovy.dev
 * @className: Qn_Dev
 * @author: LiJT
 * @description: TODO
 * @date: 2024-09-05 19:09
 * @version: 1.0
 */
public class Jss_Dev {
    private static final Log log = LogFactory.getLog(Jss_Dev.class);

    public static void main(String[] args) throws UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeyException {

        String mobile = "18675571253abc";
        String encc = GMSMUtils.encrypt(mobile, "");
        System.out.println("字符串:" + mobile + " 加密结果:" + encc);

        String dncc = GMSMUtils.decrypt(encc, "");
        System.out.println("字符串:" + encc + " 解密密结果:" + dncc);

    }

}
